#ifndef COMMON_H_H
#define COMMON_H_H
#include <vector>
using namespace std ;

const int LIST_MAX = 0x1000 ;

typedef unsigned char bit ;
typedef unsigned char nibble ;
typedef unsigned char byte ;
typedef unsigned int word ;

typedef vector<bit> key_t ;
typedef key_t plaintext_t ;
typedef plaintext_t ciphertext_t ;

void bit_to_word( vector<bit> bit_vector , word val[] , const int array_num ) ;
void bit_to_nibble( vector<bit> bit_vector , nibble val[] , const int array_num ) ;
void nibble_to_bit( nibble val[] , const int array_num , vector<bit>& bit_vector ) ;
#endif